//
//  CopyTextField.m
//  ICrEAM
//
//  Created by mac on 17/3/6.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "CopyTextField.h"

@implementation CopyTextField

- (CGRect) caretRectForPosition:(UITextPosition*) position
{
    return CGRectZero;
}

- (NSArray *)selectionRectsForRange:(UITextRange *)range
{
    return nil;
}

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
    if (action == @selector(copy:) || action == @selector(selectAll:) || action == @selector(paste:))
    {
        return NO;
    }
    
    return [super canPerformAction:action withSender:sender];
}
@end
